import request from "@/utils/request";

// 封装获取文章分类接口
export const getArtCateListApi = () => {
  return request({
    method: "get",
    url: "/my/cate/list",
  });
};

// 封装新增文章分类接口
export const addArtCateApi = (data) => {
  return request({
    method: "post",
    url: "/my/cate/add",
    data,
  });
};

// 封装更新文章分类接口
export const updateArtCateApi = (data) => {
  return request({
    method: "put",
    url: "/my/cate/info",
    data,
  });
};

// 封装删除文章分类接口
export const delArtCateApi = (params) => {
  return request({
    method: "delete",
    url: "/my/cate/del",
    params,
  });
};
